import request from '@/utils/request'

export function addCustomer(data) {
  return request({
    url: '/customer/create',
    method: 'post',
    data
  })
}

export function updateCustomer(data) {
  return request({
    url: '/customer/update',
    method: 'post',
    data
  })
}

export function exportCustomers(data) {
  return request({
    url: '/customer/export',
    method: 'post',
    data
  })
}


export function getCustomerList(data) {
  return request({
    url: '/customer/list',
    method: 'post',
    data
  })
}

export function openBalance(data) {
  return request({
    url: '/customer/open',
    method: 'post',
    data
  })
}


export function deleteCustomer(data) {
  return request({
    url: '/customer/delete',
    method: 'post',
    data
  })
}
